package com.cyzy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cyzy.pojo.Campus;
import com.cyzy.pojo.Exhibition;
import com.cyzy.pojo.VoteRecord;
import com.cyzy.vo.CampusWorks;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface VoteService extends IService<Exhibition> {

    //查询对应校区最近的一场投票
    Map<String,Object> selectAllVote(@Param("exhId") Long exhId);

    //判断家长或者用户是否投票过该作品了
    Boolean judgeUserVote(VoteRecord voteRecord);

    //新增一条投票记录
    Boolean insertNewVoteRecord(VoteRecord voteRecord);

    //查询校区ID
    Campus queryCampusInfo(Long campusId);

    //查询校区ID
    List<Exhibition> queryCampusVoteInfo(Long campusId);

}
